package com.quectel.sdk.hikisc.basemodel;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 在这里编写说明
 *
 * @author: rananxin
 * @email: ryan.ran@quectel.com
 * @date: 2022-10-21 14:48:00
 */
@Data
public class EventBaseDataResp<T extends EventBaseDataResp.EventDataCls> {

    private String method;
    private EventParamsCls<T> params;

    public static class EventDataCls {
    }

    @Data
    public class EventParamsCls<T extends EventBaseDataResp.EventDataCls> {
        private String ability;
        private T[] events;
        @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "GMT+8")
        private Date sendTime;
    }
}
